package com.hirsi.common.module.auth.enums;

import com.hirsi.common.core.exception.IExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * 请求错误状态码枚举
 */
@Getter
@AllArgsConstructor
public enum AuthExceptionStatusEnum implements IExceptionEnum {

    TOKEN_INVALID(HttpStatus.UNAUTHORIZED, 401, "登录已失效，请重新登录"),
    FORBIDDEN(HttpStatus.FORBIDDEN, 403, "禁止访问");

    private HttpStatus status;

    private Integer code;

    private String msg;
}
